<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 *  $status, $paswd, $username, $areaname, $role, $site_name, $activation_period, $baseurl, $Name 
 */
switch ($status) {
    case 'accept':
        acceptemail($status, $paswd, $username, $areaname, $role, $site_name, $activation_period, $baseurl, $Name);
        break;
    case 'cancel':
        cancelemail();
        break;

    default:
        break;
}



function acceptemail($status, $paswd, $username, $areaname, $role, $site_name, $activation_period, $baseurl, $Name) {
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title>Welcome to <?php echo $site_name; ?>!</title></head>
<body>'; ?>
<div style="max-width: 1000px; margin: 0; padding: 30px 0;">
<table width="80%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="5%"></td>
        <td align="left" width="95%" style="font: 13px/18px Arial, Helvetica, sans-serif;">
            <h2 style="font: normal 20px/23px Arial, Helvetica, sans-serif; margin: 0; padding: 0 0 18px; color: black;">Membership Confirmed to <strong><?php echo $site_name; ?></h2></strong>
            <p><strong><?php echo $Name; ?></strong> welcome to the <strong> <?php echo $site_name; ?></strong>. your registration was successful and we look forward to a long and mutually benificial relationship<br />
                <p>Your membership details are below please keep them safe and confidential <br /><br />
                    <strong> User : <?php echo $username; ?></strong> <br/>
                    <strong> Password : <?php echo $paswd; ?></strong></p>
            <p>
                you have been linked in the following capacity (<strong><?php echo $role; ?></strong>) to the area  <strong><?php echo $areaname; ?></strong>
            </p>
            <p>
                Please log in within 24 hours at <a href="<?php echo $baseurl; ?>" ><h2><?php echo $site_name; ?></h2></a>
            </p>
        </td>
    </tr>
</table>
Best Regards<br />
<br />
The Forum Team
</div>
</body>
</html>
<?php
}
?>
